#ifndef CUDA_COMMON_HPP
#define CUDA_COMMON_HPP

namespace algocommon
{
    const int CUDA_NUM_THREADS = 512u;

    inline unsigned int getNumberCudaBlocks(const unsigned int totalRequired,
                                            const unsigned int numberCudaThreads = CUDA_NUM_THREADS)
    {
        return (totalRequired + numberCudaThreads - 1) / numberCudaThreads;
    }


    
} // namespace algocomon

#endif